{include file="public/header" select="0" /}
<body>
<div class="title bgc">
    <i class="layui-icon layui-icon-left" onclick="load_href('{:url(\'user/index\')}',2)"></i>
    意见反馈
</div>

<ul class="detail-evaluate-list my-evaluate-list tpl_list">

</ul>

<script id="template" type="text/html">
    {{# for(var i=0;i<d.data.length ;i++){ }}
    <li class="bgc">
        <p class="time">提交时间：{{d.data[i].create_time}}</p>
        <p class="text">{{d.data[i].comment}}</p>
<!--        <p class="content"><span>展开</span> <img src="/static/index/img/down.png" alt=""></p>-->
        {{# if(d.data[i].images){ }}
        <ul class="my-evaluate-img">
            <li>
                <img src="{{d.data[i].images}}" alt="">
            </li>
        </ul>
        {{# } }}
        {{# if(d.data[i].rcomment){ }}
        <div class="my-evaluate-reply"><span>【平台回复】</span>{{d.data[i].rcomment}}</div>
        {{# } }}
    </li>
    {{# } }}
</script>

<a href="{:url('message/add')}"><img src="/static/index/img/icon60.png" class="complaint" alt=""></a>
</body>
{include file="public/footer" select="0" /}
<script>
    $(function () {
        getFlow(1, "{:url('message/getList')}");
    });
    $('.content').hide()
    if ($('.text').height() > 32) {
        $('.text').addClass('multi')
        $('.content').show()
    }
    $('.content').click(function () {
        let str = $(this).children('span')[0].innerHTML
        str == '展开' ? $('.text').removeClass('multi') : $('.text').addClass('multi')
        $(this).children('span').html(str == '展开' ? '收起' : '展开').siblings('img').attr('src', str == '展开' ? './img/up.png' : './img/down.png')
    })
</script>